package com.qztc.news_end_dto.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@TableName("news")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Schema(title = "新闻信息")
public class News extends Model<News> implements Serializable {
     @Schema(title = "新闻id")
     @TableId
     private int newsid;

     @Schema(title = "新闻标题")
     @TableField
     private String newstitle;

     @Schema(title = "新闻内容")
     @TableField
     private String newscontent;

     @Schema(title = "新闻作者")
     @TableField
     private String author;

     @Schema(title = "新闻创建日期")
     @TableField
     private String createdate;

     @Schema(title = "新闻网址")
     @TableField
     private String path;

     @Schema(title = "新闻大类id")
     @TableField
     private int themeid;

     @Schema(title = "新闻点赞数")
     @TableField
     private int likenum;
}
